export const FORM_PEPARTMENT = [
    {
        type: "hidden",
        field: "parentOrgName",
        value: ""
    },
    {
        type: "a-input",
        field: "name",
        title: "部门名称",
        value: "",
        props: { placeholder: "请输入部门名称" },
        validate: [
            { required: true, message: "请输入部门名称", trigger: "blur" }
        ]
    },
    {
        type: "select",
        field: "manager",
        title: "负责人员",
        value: [],
        options:[],
        props: { placeholder: "请选择负责人员",mode:"multiple"}
    },
    {
        type: "a-input",
        field: "description",
        title: "部门描述",
        value: "",
        props: { type:'textarea',maxLength:200,placeholder: "请输入部门描述"}
    },
]

export const COLUMNS_PEPARTMENT = [
    {
        title: '部门名称',
        dataIndex: 'name',
        scopedSlots: { customRender: 'name' }
    },
    {
        title: '成员数量',
        dataIndex: 'staffCount'
    },
    {
        title: '负责人员',
        dataIndex: 'managerNames',
        scopedSlots: { customRender: 'managerNames' }
        /* customRender: (text, row, index) => {
            if (row.menuType === 'M') {
                return 'menu'
            } else if (row.menuType === 'B'){
                return 'btn'
            }
            return ''
        }, */
    },
    {
        title: '部门描述',
        dataIndex: 'description',
        scopedSlots: { customRender: 'description' }
    },
    {
        title: '启用状态',
        dataIndex: 'status',
        scopedSlots: { customRender: 'status' }
    },
    {
        title: '更新时间',
        dataIndex: 'updatedTime',
    }, 
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' }
    },
]
